let pageMethod = require("./util/getPages.js");
const path = require('path');
function resolve (dir){
  return path.join(__dirname,dir)   //path.join(__dirname) 设置绝对路径
}

pages = pageMethod.pages();

module.exports = {
  pages,
  publicPath: "./",
  outputDir: "dist",
  assetsDir: "static",
  productionSourceMap: false,
  filenameHashing: false,
  css: {
    // modules: true,
    sourceMap: false,
    requireModuleExtension: true,
  },
  chainWebpack :(config) => {
    config.resolve.alias
        .set('@', resolve('./src'))
        .set('util',resolve('./util'))
  }
};
